/*
 * Copyright 2016-2017 TVI Go Easy.
 * Created on 2017/6/15 14:26
 */
package com.gitee.mechanic.core.exception;

import com.gitee.mechanic.core.enums.HttpCode;

/**
 * 运行时异常基类
 *
 * @author mechanic
 * @version 0.0.1
 */
public abstract class SuperException extends Exception {

    private static final long serialVersionUID = 7477106456770824265L;

    private HttpCode httpCode;

    protected SuperException(HttpCode httpCode){
        super(httpCode.getMessage());
        this.httpCode = httpCode;
    }

    protected SuperException(HttpCode httpCode, String message ){
        super(message);
        this.httpCode = httpCode;
    }

    public HttpCode getHttpCode() {
        return httpCode;
    }

}
